import request from '@/utils/request'

// 查询首检列表
export function listFcheck(query) {
  return request({
    url: '/qa/fcheck/list',
    method: 'get',
    params: query
  })
}

// 查询首检详细
export function getFcheck(fcheckId) {
  return request({
    url: '/qa/fcheck/' + fcheckId,
    method: 'get'
  })
}

// 新增首检
export function addFcheck(data) {
  return request({
    url: '/qa/fcheck',
    method: 'post',
    data: data
  })
}

// 修改首检
export function updateFcheck(data) {
  return request({
    url: '/qa/fcheck',
    method: 'put',
    data: data
  })
}

// 删除首检
export function delFcheck(fcheckId) {
  return request({
    url: '/qa/fcheck/' + fcheckId,
    method: 'delete'
  })
}

// 导出首检
export function exportFcheck(query) {
  return request({
    url: '/qa/fcheck/export',
    method: 'get',
    params: query
  })
}